package fr.afcepf.atod19.dreamproject.business.implementation;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.transaction.annotation.Transactional;

import fr.afcepf.atod19.dreamproject.business.interfaces.TestIBusinessAdress;
import fr.afcepf.atod19.dreamproject.dao.interfaces.TestIDaoAdresse;
import fr.afcepf.atod19.dreamproject.entity.Adresse;

public class TestBusinessAdresse implements TestIBusinessAdress {

	static Logger logger = LoggerFactory.getLogger(TestBusinessAdresse.class);
	private TestIDaoAdresse classDeTests;

	/**
	 * @param c
	 */

	@Transactional
	@Override
	public int createAdresse(Adresse a) {
		System.out.println("pouet");
		return classDeTests.createAdresse(a);
	}

	public void setClassDeTests(TestIDaoAdresse c) {
		this.classDeTests = c;
	}

}
